'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/static/:url', controller.home.index);
  router.post('/signin', controller.user.signin);
  router.post('/user/avator/upload', controller.user.upload);
  router.post('/check/file', controller.upload.checkFile)
  router.post('/upload', controller.upload.upload)
  router.post('/merge/file', controller.upload.mergeFile)
  router.post('/oss/upload', controller.upload.ossUpload)
};
